package com.hysf.entity;

import java.util.Objects;
/**
 *
 * @Description:
 *
 * @Author: 石涛
 * @Date: 2024/4/9 10:51
 **/

public class Good {
    private Long goodid;

    private String goodname;

    private String goodclass;
    public Good() {
    }
    public Good(Long goodid, String goodname, String goodclass) {
        this.goodid = goodid;
        this.goodname = goodname;
        this.goodclass = goodclass;
    }

    public Long getGoodid() {
        return goodid;
    }

    public void setGoodid(Long goodid) {
        this.goodid = goodid;
    }

    public String getGoodname() {
        return goodname;
    }

    public void setGoodname(String goodname) {
        this.goodname = goodname;
    }

    public String getGoodclass() {
        return goodclass;
    }

    public void setGoodclass(String goodclass) {
        this.goodclass = goodclass;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Good good = (Good) o;
        return Objects.equals(goodid, good.goodid) && Objects.equals(goodname, good.goodname) && Objects.equals(goodclass, good.goodclass);
    }

    @Override
    public int hashCode() {
        return Objects.hash(goodid, goodname, goodclass);
    }

    @Override
    public String toString() {
        return "Good{" +
                "goodid=" + goodid +
                ", goodname='" + goodname + '\'' +
                ", goodclass='" + goodclass + '\'' +
                '}';
    }
}
